package com.example.user.customviewdemo.drawing.paint;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.example.user.customviewdemo.R;

/**
 * paint函数大汇总
 */
public class PaintActivity extends AppCompatActivity {

    private MyPaintView myPaintView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_paint);
        myPaintView = (MyPaintView) findViewById(R.id.my_paint_view);

        findViewById(R.id.paint_animator_button).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                myPaintView.startAnimator();
            }
        });
    }
}
